package com.losdun.product.controller.req;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * @author sword.ye
 * @date 2025/6/7
 **/
@Data
public class CalPriceReq {

    @NotNull(message = "产品不能为空")
    private Long productId;
    private String colorName;
    private Long colorId;
    private String openTypeName;
    private Long openTypeId;
    private Integer doorWidth;
    private Integer doorHeight;
    private String customerName;
    private String customerPhone;
    private List<Parts> partsList=new ArrayList<>();

    @Data
    public static class Parts{
        private String configName;
        private Long configId;

        private List<PartsInfo> partsArr=new ArrayList<>();

    }
    @Data
    public static class PartsInfo{
        private String text;
        private Long value;
        private Info partInfo;

    }

    @Data
    public static class Info {
        private Integer number;
        private BigDecimal price;
        private BigDecimal totalPrice;
    }
}
